{% extends "bugs/base.html" %}
{% block title %}Milestones{% endblock %}
{% block content_title %}{% endblock %}
{% block stylesheet %}{% load media %}{% media_prefix %}css/bugs-table.css{% endblock %}
{% block main %}
<script type="text/javascript" src="{% media_prefix %}js/bugs-table-event.js"></script>

  <h2>{% block listtitle %}Milestones{% endblock %}</h2>
  <div id="tablecontent">
  {% if milestones %}
  <table width="50%" cellpadding="2" cellspacing="1">
  <tr bgcolor="#E3E4FF">
  <th width="80%" align="center">Value</th>
  <th width="10%">MileStone</th>
  <th width="10%">Sort</th>
  </tr>
  {% for milestone in milestones %}  
  <tr class="{% cycle 'even' 'odd' %}" onclick="trOnClick('{% url homesite.bugs.views.milestoneedit project.norm_name,milestone.value %}')" onmouseover="trOnOver(this, '{% url homesite.bugs.views.milestoneedit project.norm_name,milestone.value %}')" onmouseout="trOnOut(this)">
  <td>{{ milestone.value }}</td>
  <td>{% ifequal milestone.milestone 1 %}yes{% else %}-{% endifequal %}</td>  
  <td>{{ milestone.sort }}</td></tr>
  {% endfor %}
  </table>
  {% else %}
  <p>No tags avalible</p>
  {% endif %}
  </div>
{% endblock %}

